# locust777

//函数练习31

#include<stdio.h>
#include<windows.h>

int Add(int x,int y)
{
	return x+y;
}

int Max(int x,int y)
{
	return (x>y)?x:y;
}

void Change(int* x,int* y)
{
	int tmp = *x;
	*x = *y;
	*y = tmp;
}

int main()
{
	int a = 0;
	int b = 0;
	scanf("%d%d",&a,&b);
	printf("操作前:a = %d,b = %d\n",a,b);
	printf("相加为:%d\n",Add(a,b));
	printf("更大的是:%d\n",Max(a,b));
	Change(&a,&b);
	printf("操作后:a = %d,b = %d\n",a,b);
	

system("pause");
return 0;
}
